<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of index
 *
 * @author CaN
 */
class index extends CI_Controller {
       
    
    
        function __construct()
	{
		parent::__construct();
	}
	function index()
	{        
            $this->load->model('kpModel');
            $data['kupons']=  $this->kpModel->getTahmins();
            $data['thmnsr']= 'editor';
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/index.php';
            $this->load->view('page_view',$data);
	}
        function bestTahminser(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/best_tahminser.php';
            $this->load->view('page_view',$data);
        }
        function monthlyAward(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/monthly_award.php';
            $this->load->view('page_view',$data);
        }
        function tahmins(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/tahmins_img.php';
            $this->load->view('page_view',$data);
        }
        
        function latestTahmins(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/newest.php';
            $this->load->view('page_view',$data);
        }
        
        function liveTahmins(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/live.php';
            $this->load->view('page_view',$data);
        }
        
        function winnerTahmins(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/winner.php';
            $this->load->view('page_view',$data);
        }
        
        function mostPopularTahmins(){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/mostPopular.php';
            $this->load->view('page_view',$data);
        }
        
        function share(){
            $this->load->library('session');
            if($this->session->userdata('validated')){
            $data['base']= $this->config->item('base_url');
            $data['css']=  $this->config->item('css');
            $data['title']= 'Tahmins.com..';
            $data['page']='content/share.php';
            $this->load->view('page_view',$data);
            }else {
                redirect('/login/loginn');
            }
        }
        
        
        
}

?>
